﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Movies.Web.Models
{
    public class Person
    {
        public int Id { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public DateTime DateOfBirth { get; set; }
        public string FullName
        {
            get
            {
                return string.Format("{0} {1}", this.FirstName, this.LastName);
            }
        }
    }
    public class Director : Person
    {
        public Director()
        {
            this.MoviesDirected = new List<Movie>();
        }

        public ICollection<Movie> MoviesDirected { get; set; }
    }
}